package ch01;

import java.util.Scanner;

public class ScoreTest {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入题目数量：");
        int count=scan.nextInt();
        System.out.println("请输入正确题目数量：");
        int right=scan.nextInt();

        double score=right*100.0/count;

        System.out.println("成绩："+score);
    }
}
